//
//  BaseViewController.h
//  NewNym
//
//  Created by Gideon on 16/2/15.
//  Copyright © 2016年 LiZhenning. All rights reserved.
//

#import <UIKit/UIKit.h>

@class AddressListFormatModel,LoginViewController;

@interface BaseViewController : UIViewController

@property(nonatomic,copy)void(^finishPhoto)(UIImage *image);

@property(nonatomic,copy)void(^shareSuccess)(void);

//顶部线颜色
-(void)setNavLine:(UIColor*)color;

-(void)setDeleteNavLine;

- (void)setBackLeftBarButtonItemAction:(SEL)action;

- (void)setBackLeftBarButtonItemAction:(SEL)action image:(UIImage *)image;

-(void)setBackRightBarButtonItemAction:(SEL)action text:(NSString *)text;

-(void)setBackRightBarButtonItemAction:(SEL)action image:(UIImage *)image;


-(void)setBackRightArrow:(UIView *)view;

-(void)setBackRightDarkArrow:(UIView *)view;

-(void)setTopLine:(UIView *)view color:(UIColor *)color;

-(void)setBomLine:(UIView *)view color:(UIColor *)color;

-(void)setHline:(UIView *)view color:(UIColor *)color height:(CGFloat)height x:(CGFloat)x;


/**
 上传头像
 */
- (void)upLoadPhoto;

/**
 截图
 
 @param imageView 指定view
 @return
 */
- (UIImage *)setImageSnapshotImageView:(UIView *)imageView;


/**
 隐藏导航
 
 @param hidden
 */
- (void)setNavHidden:(BOOL)hidden;



/**
 获取当前时间
 
 @return
 */
- (NSString *)getCurrentTime;

//1、判断输入的字符串是否全是中文
-(BOOL)IsChinese:(NSString *)str;

//1、判断输入的字符串是否有中文
-(BOOL)IsHaveChinese:(NSString *)str;


/**
 分享
 
 @param image
 @param text
 @param title
 @param url
 */
-(void)setShareSDKImage:(id)image
                   text:(NSString *)text
                  title:(NSString *)title
                    url:(NSURL *)url;



@end
